package com.itheima.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * AliConfigProperties
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/4/30 17:52
 */
@Component
@Data
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliConfigProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private User user;

    @Data
    public static class User {
        private List<String> hobby;
    }
}
